import request from '@/utils/request.js'
export function companyDepartment() {
  return request({
    url: '/company/department'
  })
}
// 获取员工简单列表
export function sysuserSimple() {
  return request({
    url: '/sys/user/simple'
  })
}
// 新增部门
export function companyDepartmentPOST(data) {
  return request({
    url: '/company/department',
    method: 'post',
    data
  })
}
// 删除部门
export function companyDepartmentGET(id) {
  return request({
    url: `/company/department/${id}`,
    method: 'DELETE'
  })
}
// 编辑部门
export function companyDepartmentPUT(data) {
  return request({
    url: '/company/department/' + data.id,
    method: 'PUT',
    data
  })
}
